import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
//import UsersPage from './Main'
import registerServiceWorker from './registerServiceWorker';
//import { BrowserRouter, Route } from 'react-router-dom'

ReactDOM.render((
	<App />
	),document.getElementById('root'));
/*function tick() {
  const element = (
    <div>
      <h1>Hello, world!</h1>
      <h2>现在是 {new Date().toLocaleTimeString()}.</h2>
    </div>
  );
  ReactDOM.render(
    element,
    document.getElementById('content')
  );
}
 
setInterval(tick, 1000);*/

/*const PrimaryLayout = () =>(
	<div className=''>
	  <header>
	    React App
	  </header>
	  <main>
	    <Route  path="/" component = {HomePage}/>
	    <Route  path="/users" component = {UsersPage}/>
	  </main>
	</div>
)
const HomePage = () =><div>Home Page</div>

const App = () =>(
	<BrowserRouter>
	 <PrimaryLayout/>
	</BrowserRouter>
)
ReactDOM.render(<App />,document.getElementById('root'));*/
registerServiceWorker();
